package com.module03.Q4_StudentManager;

//增加类
//继承学生List父类
//在父类的list中增加学生类
public class Q4_StudentAdd extends Q4_StudentLIst{

    Q4_Student stu;

    public Q4_StudentAdd(Q4_Student stu) {
        this.stu = stu;
    }

    public void add(){
        boolean a=list.add(stu);
        System.out.println("添加是否成功："+a);
        System.out.println("添加对象为："+stu.toString());
    }
}
